#!/bin/bash

MIRROR_ALI=registry.cn-hangzhou.aliyuncs.com

SERVICE_NAME=$1
SERVICE_VERSION=$2
SERVICE=$SERVICE_NAME:$SERVICE_VERSION

echo "build for service:$SERVICE"

docker build -t $MIRROR_ALI/westeros/$SERVICE .
docker push $MIRROR_ALI/westeros/$SERVICE
